<template>
	<view class="content" :style="{background: 'url('+bgImg+')',backgroundSize:'100% 100%'}">
		<nav-bars backState="1000" :scrollTop="scrollTop" transparentFixedFontColor="#FFF" type="transparentFixed"
			title="欢迎来到融易装"></nav-bars>
		<view class="wrapper">
			<view class="headeArea">
				<view class="title">
					融易装
				</view>
				<view class="sub-title">
					一站式智能家装购物平台
				</view>
			</view>
			<view class="mainarea">
				<view class="itemBox flex align-items column-c1" @click="goSkip('/pages_3D/pages/3D/index')">
					<view class="sidebara flex align-items">
						<view class="title">
							我要装修新房
						</view>
						<image class="arrow-icon" :src="`${imageSrc}/static/activity/welcome/arrow-r.png`"></image>
					</view>
					<view class="sidebarb">
						<image :src="`${imageSrc}/static/superHK/welcome/q1.png`"></image>
					</view>
				</view>
				<!-- <view class="itemBox flex align-items" @click="goSkip('/pages_product/pages/product/index/index')">
					<view class="sidebarb">
							<image :src="`${imageSrc}/static/superHK/welcome/q2.png`"></image>
					</view>
					<view class="sidebara">
						<view class="title">
							我要翻修新房
						</view>
					</view>
					
				</view> -->
				<view class="itemBox flex align-items column-c3" @click="pageHome('/pages/mall/index/index')">
					<view class="sidebara flex align-items">
						<view class="title">
							逛联坤买家具建材
						</view>
						<image class="arrow-icon" :src="`${imageSrc}/static/activity/welcome/arrow-r.png`"></image>
					</view>
					<view class="sidebarb">
						<image :src="`${imageSrc}/static/superHK/welcome/q3.png`"></image>
					</view>
				</view>
				<view class="itemBox flex align-items column-c3x" @click="goSkip('/pages_activity/pages/theme/index?code=LHGJ20220919')">
					<view class="sidebara flex align-items">
						<view class="title">
							麓湖国际百万补贴活动
						</view>
						<image class="arrow-icon" :src="`${imageSrc}/static/activity/welcome/arrow-r.png`"></image>
					</view>
					<view class="sidebarb">
						<image :src="`${imageSrc}/static/superHK/welcome/q3x.png`"></image>
					</view>
				</view>
				<view class="itemBox flex align-items column-c4" @click="goSkip('/pages_now/pages/now/quote/index')">

					<view class="sidebara flex align-items">
						<view class="title">
							装修免费报价
						</view>
						<image class="arrow-icon" :src="`${imageSrc}/static/activity/welcome/arrow-r.png`"></image>
					</view>
					<view class="sidebarb">
						<image :src="`${imageSrc}/static/superHK/welcome/q4.png`"></image>
					</view>
				</view>

				<view class="itemBox flex align-items column-c5" v-if="navBarTitle != '话题'"
					@click="goSkip('/pages_3D/pages/index/index')">
					<view class="sidebara flex align-items">
						<view class="title">
							装修贷款
						</view>
						<image class="arrow-icon" :src="`${imageSrc}/static/activity/welcome/arrow-r.png`"></image>
					</view>
					<view class="sidebarb">
						<image :src="`${imageSrc}/static/superHK/welcome/q6.png`"></image>
					</view>
				</view>
				<view class="itemBox flex align-items column-c6"
					@click="goSkip('/pages_two/pages/construction/introduce/index')">
					<view class="sidebara flex align-items">
						<view class="title">
							装修监工服务
						</view>
						<image class="arrow-icon" :src="`${imageSrc}/static/activity/welcome/arrow-r.png`"></image>
					</view>
					<view class="sidebarb">
						<image :src="`${imageSrc}/static/superHK/welcome/q5.png`"></image>
					</view>
				</view>
			</view>
			<view class="goHome flex align-items" @click="pageHome('/pages/home/index/index')">
				<text>进入主页</text>
				<image :src="`${imageSrc}/static/superHK/welcome/qr.png`" mode="widthFix"></image>
			</view>
		</view>
	</view>
</template>

<script>
	import LivePlayer from '@/service/player.js';
	export default {
		components: {},
		data() {
			return {
				statusLoading: 'loadmore',
				iconType: 'flower',
				loadText: {
					loadmore: '轻轻上拉',
					loading: '努力加载中',
					nomore: '到底了~'
				},
				navBarTitle: '话题',
				page: 1,
				pagesize: 10,
				imageSrc: this.$static,
				list: [],
				bgImg: this.$static + '/static/activity/welcome/welcome_bg.png',
				scrollTop: 0,
				loanShow: '0',
			}
		},
		onReady() {
			var value = uni.getStorageSync('LiveConfig');
			this.navBarTitle = value != '' ? value : '话题';
		},
		onLoad() {

		},
		onShow() {
			var value = uni.getStorageSync('LiveConfig');
			this.navBarTitle = value != '' ? value : '话题';
			this.getConfig();
		},
		methods: {
			getConfig() {
				LivePlayer.getLvieConfig()
					.then(res => {
						if (res.code === 1) {
							this.loanShow = res.data.value
						} else {}
					})
					.catch(err => {
						console.log(err);
					});
			},
			pageHome(url) {
				uni.setStorageSync('entry', 1);
				uni.switchTab({
					url: url
				});
			},
			goSkip(url) {
				uni.navigateTo({
					url: url
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {}

	.content {
		width: 100%;
		min-height: 100vh;
		// background: #fff !important;

		.wrapper {
			width: 100%;
			height: auto;
		}

		.headeArea {
			width: 94%;
			margin: auto;
			padding-top: 180rpx;
			color: #fff;

			.columnOne {
				justify-content: space-between;

				.h1-title {
					color: #252525;
					font-size: 48rpx;
					font-weight: 800;
				}

				.customers {
					width: 114rpx;
					height: 44rpx;
					line-height: 44rpx;
					text-align: center;
					color: #FFFFFF;
					background: #F99704;
					box-shadow: 0px 3rpx 6rpx rgba(249, 151, 4, 0.2);
					border-radius: 23rpx;
				}
			}

			.title {
				margin-top: 20rpx;
				font-size: 50rpx;
				font-weight: 800;
			}

			.sub-title {
				font-size: 30rpx;
				padding-top: 18rpx;
			}
		}

		.mainarea {
			width: 100%;
			margin-top: 68rpx;

			.itemBox {
				padding-right: 32rpx;
				height: 160rpx;
				margin: 0 30rpx;
				margin-top: 24rpx;
				background: #f7f7f7;
				border-radius: 15rpx;
				justify-content: space-between;

				.sidebara {
					margin-left: 30rpx;

					.title {
						color: #28292D;
						font-size: 34rpx;
					}

					.arrow-icon {
						width: 28rpx;
						height: 28rpx;
						margin-left: 10rpx;
					}

					.subtitle {
						color: #464646;
						font-size: 26rpx;
						margin-top: 8rpx;
					}
				}

				.sidebarb {
					margin-left: 50rpx;

					image {
						width: 72rpx;
						height: 72rpx;
					}
				}
			}

			.steward {
				background: linear-gradient(180deg, #D9EBFF 0%, #F1F8FF 100%);
				box-shadow: 0px 2rpx 14rpx rgba(241, 241, 241, 0.16);
				opacity: 0.92;
				border-radius: 24rpx;
			}

			.setmeals {
				background: linear-gradient(180deg, #FFE3DB 0%, #FFF4F2 100%);
				box-shadow: 0px 2rpx 14rpx rgba(241, 241, 241, 0.16);
				opacity: 0.92;
				border-radius: 24rpx;
			}

			.dailySpecials {
				background: linear-gradient(180deg, #FFECD8 0%, #FFF6EC 100%);
				box-shadow: 0px 2px 14rpx rgba(241, 241, 241, 0.16);
				opacity: 0.92;
				border-radius: 24rpx;
			}

			.budget {
				background: linear-gradient(180deg, #C9F2DD 0%, #ECF9F3 100%);
				box-shadow: 0px 2rpx 14rpx rgba(241, 241, 241, 0.16);
				opacity: 0.92;
				border-radius: 24rpx;
			}

			.freedesign {
				background: linear-gradient(180deg, #FFE2E4 0%, #FFEFF1 100%);
				box-shadow: 0px 2rpx 14rpx rgba(241, 241, 241, 0.16);
				opacity: 0.92;
				border-radius: 24rpx;
			}

			.column-c1 {
				background: linear-gradient(270deg, #ACE2FB 0%, #E4F4FF 100%);
			}

			.column-c2 {
				background: linear-gradient(270deg, #F9E3B5 0%, #FBF6DE 100%);
			}

			.column-c3 {
				background: linear-gradient(270deg, #F9E3B5 0%, #FBF6DE 100%);
			}

			.column-c3x {
				background: linear-gradient(270deg, #FFCAC2 0%, #FFF0EE 100%);
			}

			.column-c4 {
				background: linear-gradient(270deg, #ECD6FC 0%, #E6F2FE 100%);
			}

			.column-c5 {
				background: linear-gradient(90deg, #FFF6EE 0%, #FFB8F9 100%);
			}

			.column-c6 {
				background: linear-gradient(90deg, #D7F0FF 0%, #AEE3FC 100%);
			}
		}

		.goHome {
			width: 300rpx;
			height: 90rpx;
			font-size: 28rpx;
			font-weight: 500;
			color: #fff;
			margin: 60rpx auto;
			text-align: right;
			background: #EB435A;
			text-align: center;
			border-radius: 50rpx;
			justify-content: center;

			image {
				width: 30rpx;
				margin-left: 15rpx;
			}
		}

		.flex {
			display: flex;
		}

		.align-items {
			align-items: center;
		}
	}
</style>
